﻿@model WmWebSystem.Models.Project
@{
    ViewBag.Title = "Details";
}

<!-- SLIDER_NIVO -->
<script type="text/javascript" src="@Url.Content("~/Scripts/js/jquery.nivo.slider.pack.js")"></script>
<script type="text/javascript">
    $(window).load(function () {
        $('.nivo_slider').nivoSlider({
            manualAdvance: true,
            directionNavHide: true
        });
    });
</script>
<!-- BEGIN middle part -->

<section id="content">
<div class="href_path_link"><h6>YOU ARE HERE: <a href="@Url.Action("Index", "Home")">Home</a>><a href="@Url.Action("List", "Project")">Project List</a>>Details</h6></div>
<div class="href_path_about"><h2>项目介绍</h2><img class="" src="@Url.Content("~/Content/images/end-logo.png")" alt="end-logo" /></div>
	
<!-- BEGIN blog left -->
<div class="blog_left">


<div class="blog_left_content">
<div class="blog_content_info">
    <div class="blog_content_author"><span>Target：</span><br />@Model.TargetValue</div>
    <div class="blog_content_author"><span>Current：</span><br />@Model.CurrentValue</div>
	<div class="blog_content_author"><span>Author：</span><br />@Model.Author</div>
	<div class="blog_content_category"><span>Category：</span><br />```</div>
	
</div>
<div class="blog_content_inner">
	<div class="theme-default">
		<div class="blog_content_slider nivo_slider">
               @foreach (var item in (IEnumerable<WmWebSystem.Models.ChildProject>)ViewData["childProjects"])
               {
                   if (item.MineType == ".bmp" || item.MineType == ".jpg" || item.MineType == ".jpeg" || item.MineType == ".png" || item.MineType == ".gif")
                   {
                       <img src="@Url.Content(item.UrlPath)" alt="" width="560px" height="215px" />
                   }
               }
		</div>
	</div>
<h3>@Model.ProjectName</h3>
@(new MvcHtmlString(Model.Content))

<div class="social_icon_blog move_right">
    <div class="fadehover hoverfooter2">
		<a class="a" href="#"><img src="@Url.Content("~/Content/images/blog/post_l.png")" alt="l" /></a>
		<a class="b" href="#"><img src="@Url.Content("~/Content/images/blog/post_l1.png")" alt="l" /></a>
	</div>
    <div class="fadehover hoverfooter2">
		<a class="a" href="#"><img src="@Url.Content("~/Content/images/blog/post_m.png")" alt="m" /></a>
		<a class="b" href="#"><img src="@Url.Content("~/Content/images/blog/post_m1.png")" alt="m" /></a>
	</div>
    <div class="fadehover hoverfooter2">
		<a class="a" href="#"><img src="@Url.Content("~/Content/images/blog/post_g.png")" alt="google+" /></a>
		<a class="b" href="#"><img src="@Url.Content("~/Content/images/blog/post_g1.png")" alt="google+" /></a>
	</div>
    <div class="fadehover hoverfooter2">
		<a class="a" href="#"><img src="@Url.Content("~/Content/images/blog/post_r.png")" alt="rss" /></a>
		<a class="b" href="#"><img src="@Url.Content("~/Content/images/blog/post_r1.png")" alt="rss" /></a>
	</div>
</div>
		
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>

<h3 class="padd-bott15">Items</h3>
@{
    int m1 = 0;
}
@foreach (var item in (IEnumerable<WmWebSystem.Models.ChildProject>)ViewData["childProjects"])
{
    if (item.MineType == ".mp3" || item.MineType == ".avi" || item.MineType == ".mpeg" || item.MineType == ".mpg" || item.MineType == ".dat" || item.MineType == ".ra" || item.MineType == ".rm" || item.MineType == ".asf" || item.MineType == ".wmv")
    {
        if (item.MineType == ".mp3" || item.MineType == ".avi")
        {
            m1++;
            if (m1 % 3 == 1)
            {
            <div class="bott_post bott_post_first">
            <audio controls="controls" >
                   <source src="@Url.Content(item.UrlPath)" /> 
            </audio>
            <h3>@item.ChildName</h3>
            <p>@item.Content</p>
            <a class="con_button con_button2" href="#"><span class="con_button_text">like</span><span class="con_button_arrow"><span>Like</span></span></a>
            <div class="clear"></div>
            </div>
            }
            else
            {
            <div class="bott_post">
            <audio controls="controls" >
                   <source src="@Url.Content(item.UrlPath)" /> 
            </audio>
            <h3>@item.ChildName</h3>
            <p>@item.Content</p>
            <a class="con_button con_button2" href="#"><span class="con_button_text">like</span><span class="con_button_arrow"><span>Like</span></span></a>
            <div class="clear"></div>
            </div>
            }
        }
        else
        {
            m1++;
            if (m1 % 3 == 1)
            {
            <div class="bott_post bott_post_first">
            <embed src="@Url.Content(item.UrlPath)" autostart="false" loop="false" width="178px" height="120px" />
            <h3>@item.ChildName</h3>
            <p>@item.Content</p>
            <a class="con_button con_button2" href="#"><span class="con_button_text">like</span><span class="con_button_arrow"><span>Like</span></span></a>
            <div class="clear"></div>
            </div>
            }
            else
            {
            <div class="bott_post">
            <embed src="@Url.Content(item.UrlPath)" autostart="false" loop="false" width="178px" height="120px" />
            <h3>@item.ChildName</h3>
            <p>@item.Content</p>
            <a class="con_button con_button2" href="#"><span class="con_button_text">like</span><span class="con_button_arrow"><span>Like</span></span></a>
            <div class="clear"></div>
            </div>
            }
        }
    }
}
<div class="comment_cont">
<h3>Say something in here!</h3>

</div>

<!-- BEGIN COMMENT -->
@foreach (var item in (IEnumerable<WmWebSystem.Models.Comment>)ViewData["comments"])
{
    <div class="comment_cont">
      <div class="com_image">
       <img src="@Url.Content("~/Content/images/blog/avatar.jpg")" alt="avatar" />
      </div>
     <div class="com_inf">
      <ul class="ul_information no-marg-top padd-left">
        <li class="bebas">@item.Editor</li>
        <li>@item.AddTime</li>
      </ul>
      </div>
     <div class="clear"></div>
     <p>@item.Content
     </p>
    </div>
}
<!-- /BEGIN COMMENT -->

<!-- BEGIN TABLE POST COMMENT-->
<div class="comment_cont border_none">
<h3>LEAVE A COMMENT</h3>
<div class="border"></div>
@using (Html.BeginForm("CommentCreate", "Project", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.ProjectNo)
    <div>
      <label>Comment</label><br />
      <input class="input_text" id="CommentTip" type="text" name="name" size="100" /><br />
      <input type="submit" name="Submit" value="Comment" /><br />
    </div>
    <div class="clear"></div>
}

</div>
<!-- /END TABLE POST COMMENT-->


</div>
<!-- /END blog left -->



<!-- BEGIN blog right -->
<div class="blog_right">
    
<div class="widget widget-tabs-wrapper tabs">
           
	<ul class="widgetTabs tabs-nav">
		<li class="popular"><a href="#tab-pop">项目最新动态</a></li>
	</ul>
            
	<div class="clear"></div>
            
	<div class="widget-tabs-inside tabs-container">
		<ul id="tab-pop" class="widget_recent_posts tab-content">            
             <li class="tumbnail_post">
				
				<a class="post_name" href="#">戴威尔</a>
				<div class="clear"></div>
				<img src="@Url.Content("~/Content/images/blog/avatar1.jpg")" class="left padd-right5" alt="blog" title="blog" />
				为该项目注入资金200￥...
				<br /><span>April 10, 2012</span>
				<div class="clear"></div>
			</li>  
	 
	
			<li class="tumbnail_post">
				
				<a class="post_name" href="#">和平南</a>
				<div class="clear"></div>
				<img src="@Url.Content("~/Content/images/blog/avatar2.jpg")" class="left padd-right5" alt="blog" title="blog" />
				将该项目添加入关注...
				<br /><span>April 2, 2012</span>
				<div class="clear"></div>
			</li>  
	 
	
			<li class="tumbnail_post last">
				
				<a class="post_name" href="#">宋亚平</a>
				<div class="clear"></div>
				<img src="@Url.Content("~/Content/images/blog/avatar3.jpg")" class="left padd-right5" alt="blog" title="blog" />
				为该项目注入资金100￥...
				<br /><span>May 20, 2012</span>
				<div class="clear"></div>
			</li>
            <li class="tumbnail_post last">
				<a href="#">更多项目资讯</a>
			</li>                  
		</ul>
	</div><!-- /.boxes -->
			
</div><!-- /widgetTabs -->
				
<div class="clear"></div>
</div><!-- /END blog right -->


<div class="clear_both"></div>
<!-- /END blog container -->
   
</section>
<!-- /END middle part -->
<div class="clear">
</div>
